package com.zmn.plat.services.impl.channel;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.channel.ChannelDnis;
import com.zmn.plat.model.entity.channel.ChannelDnisQuery;
import com.zmn.plat.persistence.interfaces.channel.ChannelDnisDAO;
import com.zmn.plat.services.interfaces.channel.ChannelDnisService;

/**
 * BaseChannelServiceImpl
 *
 * @author tanghongjun
 */
@Service
public class ChannelDnisServiceImpl implements ChannelDnisService {

    @Resource
    private ChannelDnisDAO baseChannelDAO;

    @Override
    public List<ChannelDnis> listByQuery(ChannelDnisQuery query) {
        return baseChannelDAO.listByQuery(query);
    }

    @Override
    public void copy(Integer originalChannelId, int targetChannelId, String operator) {

        baseChannelDAO.copy(originalChannelId, targetChannelId, operator);
    }
}